#ifndef TCPSOCKET_H
#define TCPSOCKET_H
#include <string>

class TCPSocket {
public:
	TCPSocket();
	TCPSocket(int connFd);
	int connectHost(std::string IP, unsigned short port, int connectTime);
	int sendMsg(std::string msg, int timeout);
	std::string recvMsg(int timeout);
	~TCPSocket();

private:
	int m_connFd;
};

#endif
